package com.blackline.UI.MATCH;

import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;

/**
 * @author XBO
 * @version Feb, 2013
 * <p>This page is after clicking the Automatic link for an item in Matched Transactions. <br>
 * Please refer to UI.AutomaticMatches.png in doc-files.
 */
public class AutomaticMatches {
	/**
	 * Back button
	 */
	@FindBy (id = "btnICancel")
	public WebElement Back_button;
	
	/**
	 * Unmatched button
	 */
	@FindBy (id = "btnIOperation")
	public WebElement Unmatched_button;
	
	/**
	 * Unmatch-All button
	 */
	@FindBy (id = "btnIOperationAll")
	public WebElement Unmatch_All_button;
	
	/**
	 * Create Item button
	 */
	@FindBy (id = "btnItem")
	public WebElement Create_Item_button;
	
	/**
	 * Detailed View button
	 */
	@FindBy (id = "btnSummary")
	public WebElement Detailed_View_button;
	
	/**
	 * Match Type dropdownlist
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_RadToolBar1_i14_ddlMatch_Input")
	public WebElement Match_Type_dropdownlist;
	
	/**
	 * Match Type dropdown arrow button
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_RadToolBar1_i14_ddlMatch_Arrow")
	public WebElement Match_Type_dropdownArrow;
	
	/**
	 * Pass Rule dropdownlist
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_RadToolBar1_i16_ddlPassRules_Input")
	public WebElement Pass_Rule_dropdownlist;
	
	/**
	 * Pass Rule dropdownArrow
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_RadToolBar1_i16_ddlPassRules_Arrow")
	public WebElement Pass_Rule_dropdownArrow;
	
	/**
	 * Select All link
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_MatchedTxns_lbToggleSelectAll")
	public WebElement Select_All_link;
	
	/**
	 * Operation result message
	 */
	@FindBy (xpath = "//ul[@id= 'ctl00_ctl00_contentBody_cphMain_btnResults_blOpResult']/li")
	public WebElement operationResultMessage;
	
	
	/**
	 * total number of result(s)
	 */
	@FindBy (xpath = "//div[@id = 'ctl00_ctl00_contentBody_cphMain_MatchedTxns_Panel2']/strong[3]")
	public WebElement totalNumberOfResults;
	
	
	
	
	/**
	 * checkbox  of 1st item
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_MatchedTxns_gvMain_ctl02_Child")
	public WebElement checkboxOf1stItem;
	
	/**
	 * ID filter text field
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_MatchedTxns_gvMain_filterRow_tbFilter1_MatchMadeID")
	public WebElement ID_filterField;
	
	/**
	 * Reason Code filter text field
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_MatchedTxns_gvMain_filterRow_tbFilter1_Name")
	public WebElement Reason_Code_filterField;
	
	/**
	 * Txns filter text field
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_MatchedTxns_gvMain_filterRow_tbFilter1_dt1_Txns")
	public WebElement Txns_filterField;
	
	/**
	 * Amount filter text field
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_MatchedTxns_gvMain_filterRow_tbFilter1_dt1_Amount")
	public WebElement Amount_filterField;
	
	/**
	 * Reverse Amount filter text field
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_MatchedTxns_gvMain_filterRow_tbFilter1_dt1_ReverseAmount")
	public WebElement Reverse_Amount_filterField;
	
	/**
	 * CheckDollarAmount filter text field
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_MatchedTxns_gvMain_filterRow_tbFilter1_dt2_CheckDollarAmount")
	public WebElement CheckDollarAmount_filterField;
	
	/**
	 * 	Apply Link
	 */
	@FindBy(id = "ctl00_ctl00_contentBody_cphMain_MatchedTxns_lbApplyFilters")
	public WebElement Apply_Link;
	
	/**
	 * 	Clear Link
	 */
	@FindBy(id = "ctl00_ctl00_contentBody_cphMain_MatchedTxns_hlClearFilters")
	public WebElement Clear_Link;
	
	
	

}
